package com.d2.modules.system.permission.util.filter;

import com.d2.modules.system.permission.entity.User;
import com.d2.modules.system.permission.util.UserContext;
import lombok.Data;

public class DataScope {
    public static final ThreadLocal<String> LOCAL_PARAMS = new ThreadLocal<String>();


    public static void appendSQL(String sql) {
        LOCAL_PARAMS.set(sql);
    }

    public static String getParams() {
        return LOCAL_PARAMS.get();
    }

    public static void clearParams() {
        LOCAL_PARAMS.remove();
    }
}
